var show_flowgo_popup = 1; function do_flowgo_popup_for_site_178 () { function flowgo_power_popup () { } function flowgo_regular_popup () { } if (show_flowgo_popup == 1) { flowgo_regular_popup (); flowgo_power_popup (); } } function do_flowgo_popup_for_site_178_onload () { function flowgo_regular_popup_onload() { var time_left = ((60 - (new Date()).getMinutes()) * 60000) + ((23 - (new Date()).getHours()) * 3600000); var expires = new Date ((new Date()).getTime() + time_left); var name_index = document.cookie.indexOf ("EXCLUDE_FLOWGO_POPUP_FOR_SITE_178_ONLOAD"); if (name_index < 0) { document.cookie = "EXCLUDE_FLOWGO_POPUP_FOR_SITE_178_ONLOAD=1; expires=" + expires.toGMTString() + "; path=/"; } else { var equals_index = document.cookie.indexOf ("=", name_index); var semicolon_index = document.cookie.indexOf (";", equals_index); if (semicolon_index < 0) semicolon_index = document.cookie.length; var val = document.cookie.substring (equals_index + 1, semicolon_index); val = parseInt (val); if (val < 1) { val = val + 1; document.cookie = "EXCLUDE_FLOWGO_POPUP_FOR_SITE_178_ONLOAD=" + val + "; expires=" + expires.toGMTString() + "; path=/"; } else { return; } } var ad_location = 5; var ptop = 0; var pleft = 0; var screenwidth = screen.width; var screenheight = screen.height; var ad_width = 720; var ad_height = 500; var border = 8; switch(ad_location) { case 1: ptop = 0; pleft = 0; break; case 2: ptop = 0; pleft = parseInt((screenwidth/2) - (ad_width/2)); break; case 3: ptop = 0; pleft = screenwidth - ad_width - border; break; case 4: ptop = parseInt((screenheight/2) - (ad_height/2)); pleft = 0; break; case 5: ptop = parseInt((screenheight/2) - (ad_height/2)); pleft = parseInt((screenwidth/2) - (ad_width/2)); break; case 6: ptop = parseInt((screenheight/2) - (ad_height/2)); pleft = screenwidth - ad_width - border; break; case 7: ptop = screenheight - ad_height - border; pleft = 0; break; case 8: ptop = screenheight - ad_height - border; pleft = parseInt((screenwidth/2) - (ad_width/2)); break; case 9: ptop = screenheight - ad_height - border; pleft = screenwidth - ad_width - border; break; } if (ad_location != 10) { var options = 'top=15000,toolbar=0, resizable=0, width=' + ad_width + ', height=' + ad_height + ', scrollbars=1'; } else { var options = 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,top=15000,width='+screen.availWidth+',height='+screen.availHeight; } var url = 'http://www.flowgo.com/popup1/passive.cfm?site_id=178&campaign_id=109&ad_id=451&left=' + pleft + '&top=' + ptop; window.open(url, '', options); } // if (show_flowgo_popup == 1) { flowgo_regular_popup_onload (); } } function doPop () { do_flowgo_popup_for_site_178 (); } function open_flowgo_popup () { do_flowgo_popup_for_site_178 (); } function open_flowgo_popup_onload () { do_flowgo_popup_for_site_178_onload (); }